package com.hongye.backstage.service.impl;
/*
 *@Author 江伟
 *@email 2578957111@qq.com
 *@Date 2022/4/22 20:42
 */

import com.hongye.backstage.dao.HomeyBrokerDao;
import com.hongye.backstage.service.HomeyBrokerService;
import com.hongye.backstage.vo.BrokerlistVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeyBrokerServiceImpl  implements HomeyBrokerService {

    @Autowired
    private HomeyBrokerDao homeyBrokerDao;

    @Override
    public List<BrokerlistVo> brokerlist(String parameter, String status) {
        String name=null;
        String tel=null;
        if (parameter.length()==11){
            tel=parameter;
            return homeyBrokerDao.brokerlist(name,tel,status);
        }else {
            name=parameter;
            return homeyBrokerDao.brokerlist(name,tel,status);
        }

    }
}
